/* ==================== 基础样式 - 极致青色主题 ==================== */
:root {
    /* 核心青色 - 来自截图中的"提交更改"按钮 */
    --primary: #6EB5D0;
    --primary-light: #8BC9E0;
    --primary-dark: #5A9BB3;
    --primary-glow: rgba(110, 181, 208, 0.4);
    
    /* 深色背景系 */
    --bg-primary: #0D0D12;
    --bg-secondary: #141419;
    --bg-tertiary: #1A1A20;
    --bg-elevated: #22222A;
    --bg-card: #18181E;
    --bg-hover: #252530;
    
    /* 文字色 */
    --text: #E8E8F0;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --text-muted: #707080;
    
    /* 边框 */
    --border: #2A2A35;
    --border-soft: #1F1F28;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #6EB5D0 0%, #5A9BB3 100%);
    --gradient-glow: linear-gradient(135deg, rgba(110, 181, 208, 0.3) 0%, transparent 100%);
    
    /* 阴影 */
    --shadow-glow: 0 0 30px rgba(110, 181, 208, 0.35);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    /* 圆角 */
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.25s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    padding: 10px 22px;
    background: var(--primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s;
}

.nav-cta:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* 语言切换 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
}

.lang-switch:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==================== Hero 区域 ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -100px;
    animation: float 10s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-dark);
    bottom: -100px;
    left: -100px;
    animation: float 12s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25px, -25px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.35; transform: translate(-50%, -50%) scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 850px;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(110, 181, 208, 0.1);
    border: 1px solid rgba(110, 181, 208, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 32px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(110, 181, 208, 0.35);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-number.growing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.6rem;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 18px;
    height: 18px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ==================== 通用区域样式 ==================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    padding: 7px 14px;
    background: rgba(110, 181, 208, 0.1);
    border: 1px solid rgba(110, 181, 208, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

/* ==================== IDE 展示区域 ==================== */
.showcase {
    background: transparent;
}

.ide-showcase {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.ide-window {
    width: 100%;
    max-width: 1050px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
    transform: rotateX(3deg);
    transition: transform 0.4s;
}

.ide-window:hover {
    transform: rotateX(0deg);
}

.ide-header {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.window-controls {
    display: flex;
    gap: 7px;
    margin-right: 14px;
}

.control {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.control.close { background: #ff5f56; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #27c93f; }

.ide-tabs {
    display: flex;
    gap: 3px;
    flex: 1;
}

.tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: var(--bg-elevated);
    border-radius: 5px 5px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

.tab.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tab svg {
    width: 13px;
    height: 13px;
}

.tab-close {
    margin-left: 7px;
    opacity: 0.5;
}

.ide-body {
    display: flex;
    height: 460px;
}

.sidebar-left {
    width: 46px;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 6px;
}

.sidebar-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-icon:hover, .sidebar-icon.active {
    background: var(--bg-elevated);
    color: var(--primary);
}

.sidebar-icon svg {
    width: 18px;
    height: 18px;
}

.editor-area {
    flex: 1;
    display: flex;
    background: var(--bg-secondary);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    line-height: 1.75;
}

.line-numbers {
    padding: 14px 10px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    text-align: right;
    user-select: none;
}

.line-numbers span {
    display: block;
}

.code-content {
    flex: 1;
    padding: 14px;
    overflow: auto;
}

.code-line {
    white-space: pre;
}

.keyword { color: #c792ea; }
.type { color: #82aaff; }
.string { color: #c3e88d; }
.function { color: #82aaff; }
.property { color: #f78c6c; }
.parameter { color: #ff5370; }
.variable { color: #ffcb6b; }
.number { color: #f78c6c; }
.comment { color: #676e95; font-style: italic; }

.sidebar-right {
    width: 260px;
    background: var(--bg-tertiary);
    border-left: 1px solid var(--border);
    padding: 14px;
}

.ai-assistant {
    height: 100%;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.ai-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.ai-suggestion {
    background: rgba(110, 181, 208, 0.08);
    border: 1px solid rgba(110, 181, 208, 0.15);
    border-radius: 7px;
    padding: 11px;
    margin-bottom: 14px;
}

.suggestion-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 7px;
}

.suggestion-content {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.suggestion-action {
    width: 100%;
    padding: 7px;
    background: var(--primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-action:hover {
    background: var(--primary-light);
}

.ai-chat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.chat-message {
    color: var(--text-secondary);
}

.chat-prompt {
    color: var(--primary);
    margin-right: 4px;
}

.ide-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    padding: 5px 14px;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.status-left, .status-right {
    display: flex;
    gap: 14px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-item svg {
    width: 12px;
    height: 12px;
}

/* ==================== 功能特性区域 ==================== */
.features {
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(110, 181, 208, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 25px;
    height: 25px;
    color: var(--primary);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.feature-preview {
    margin-top: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.snippet-line {
    margin: 3px 0;
}

.ghost-text {
    color: var(--text-muted);
    opacity: 0.6;
}

.ai-generated {
    position: relative;
}

.ai-generated::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    opacity: 0.5;
}

/* ==================== 详细功能说明 ==================== */
.detailed-features {
    background: var(--bg-secondary);
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 100px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row.reverse {
    direction: rtl;
}

.detail-row.reverse > * {
    direction: ltr;
}

.detail-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(110, 181, 208, 0.1);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-list svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.visual-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.completion-demo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.demo-line {
    margin-bottom: 7px;
}

.code-text {
    color: var(--text-primary);
}

.completion-highlight {
    background: rgba(110, 181, 208, 0.25);
    color: var(--primary);
    padding: 2px 5px;
    border-radius: 3px;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--primary);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.completion-popup {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 7px;
    margin-top: 7px;
    overflow: hidden;
}

.completion-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    cursor: pointer;
}

.completion-item.selected {
    background: rgba(110, 181, 208, 0.15);
}

.completion-icon {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--bg-primary);
}

.completion-text {
    flex: 1;
    color: var(--text-primary);
}

.completion-type {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.debugger-demo {
    font-size: 0.82rem;
}

.debugger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.debugger-title {
    font-weight: 600;
    color: var(--text-primary);
}

.debugger-status {
    padding: 4px 9px;
    background: rgba(110, 181, 208, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.7rem;
}

.debugger-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.panel-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.variable-item, .stack-item {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.var-name {
    color: var(--text-secondary);
}

.var-value {
    color: var(--text-primary);
}

.var-value.type-number {
    color: #f78c6c;
}

.var-value.type-array {
    color: #82aaff;
}

.stack-item.active .stack-func {
    color: var(--primary);
}

.stack-loc {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.themes-preview {
    padding: 0;
    overflow: hidden;
}

.theme-tabs {
    display: flex;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.theme-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-tab.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary);
}

.theme-preview {
    padding: 20px;
    background: #282c34;
}

.preview-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.75;
}

.preview-line {
    padding: 2px 0;
}

/* ==================== 产品预览 ==================== */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.product-tab {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.product-tab:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.product-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-primary);
}

.product-preview-container {
    position: relative;
}

.product-preview {
    display: none;
}

.product-preview.active {
    display: block;
}

.preview-frame {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.preview-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.preview-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.preview-content {
    position: relative;
    height: 500px;
    background: var(--bg-primary);
}

.preview-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.preview-content:hover .preview-overlay {
    opacity: 1;
}

.preview-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--bg-primary);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.preview-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.preview-btn svg {
    width: 18px;
    height: 18px;
}

/* ==================== 产品预览折叠效果 ==================== */
.product-preview-container {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.product-preview-container.expanded {
    max-height: 800px;
}

.product-preview-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
    transition: opacity 0.3s;
}

.product-preview-container.expanded::after {
    opacity: 0;
}

.preview-expand-control {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.expand-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.expand-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.expand-btn.expanded {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-primary);
}

.expand-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

.expand-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

/* ==================== 语言支持 - 纯文字版 ==================== */
.languages {
    background: transparent;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
}

.language-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
}

.language-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.lang-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==================== 用户评价 ==================== */
.testimonials {
    background: var(--bg-secondary);
}

/* 评价提交表单 */
.testimonial-form-container {
    max-width: 600px;
    margin: 0 auto 50px;
}

.testimonial-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.form-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    color: var(--bg-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
}

/* 滚动评价展示 */
.testimonials-scroll-container {
    overflow: hidden;
    position: relative;
}

.testimonials-scroll {
    display: flex;
    gap: 20px;
    animation: scrollTestimonials 30s linear infinite;
}

.testimonials-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
    flex-shrink: 0;
    width: 350px;
}

.testimonial-card:hover {
    border-color: var(--primary);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--primary);
}

.testimonial-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 22px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--bg-primary);
    font-size: 0.9rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.author-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== 下载区域 ==================== */
.download {
    background: transparent;
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(110, 181, 208, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 35px 28px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.download-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.download-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    background: var(--primary);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 100px;
}

.download-icon {
    width: 58px;
    height: 58px;
    background: rgba(110, 181, 208, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.download-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.download-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.download-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 7px;
}

.download-version {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 22px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px 22px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s;
}

.download-btn:hover {
    background: var(--primary);
    color: var(--bg-primary);
}

.download-btn.primary {
    background: var(--primary);
    color: var(--bg-primary);
    border: none;
}

.download-btn.primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 45px;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.25s;
}

.info-item:hover {
    color: var(--primary);
}

.info-item svg {
    width: 16px;
    height: 16px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 70px 0 35px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 55px;
    margin-bottom: 55px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo-icon {
    width: 36px;
    height: 36px;
}

.footer-brand .logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-desc {
    color: var(--text-secondary);
    margin-top: 14px;
    margin-bottom: 22px;
    line-height: 1.65;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.25s;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-primary);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-links h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 11px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.25s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 35px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .languages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-options {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .detail-row.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        gap: 35px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card.large {
        grid-column: span 1;
    }
    
    .languages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .download-info {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .ide-body {
        flex-direction: column;
        height: auto;
    }
    
    .sidebar-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
